package example;


public class HPlayer extends Player {
    private int backCount = 3;//悔棋数

    public HPlayer(int color) {
        super(color);
    }

    //悔棋
    public boolean Takeback()
    {
        if(backCount > 0)
        {
            backCount--;
            chessList.remove(chessList.size()-1);
            return true;
        }
        else
        {
            return false;
        }
    }



}
